\hypertarget{class_k_v_property}{\section{K\+V\+Property类 参考}
\label{class_k_v_property}\index{K\+V\+Property@{K\+V\+Property}}
}


一个简单的属性列表类  




{\ttfamily \#include $<$K\+V\+Property.\+h$>$}

\subsection*{Public 成员函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_k_v_property_a2b962e470acd5e4f5c69232b0c5cdd18}{K\+V\+Property} ()
\begin{DoxyCompactList}\small\item\em 属性表构造函数 \end{DoxyCompactList}\item 
\hyperlink{class_k_v_property_ab7a2ed9ecf029cf60e9403e5b34d5053}{$\sim$\+K\+V\+Property} ()
\begin{DoxyCompactList}\small\item\em 属性表析构函数 \end{DoxyCompactList}\item 
bool \hyperlink{class_k_v_property_a2d5407252192596dcf76e8b4c819ccd4}{init\+With\+File} (const string file\+Name)
\begin{DoxyCompactList}\small\item\em 从配置文件初始化属性表 \end{DoxyCompactList}\item 
bool \hyperlink{class_k_v_property_aba54fbf360de68a40d5f5d320cde7e5b}{save\+As\+File} (const string file\+Name)
\begin{DoxyCompactList}\small\item\em 保存属性表,此操作会重写并保存属性文件 \end{DoxyCompactList}\item 
\hyperlink{class_k_v_value}{K\+V\+Value} \& \hyperlink{class_k_v_property_a2da1520428e305fa4142943762c10263}{operator\mbox{[}$\,$\mbox{]}} (string keyword)
\begin{DoxyCompactList}\small\item\em \mbox{[}\mbox{]}运算符重载 \end{DoxyCompactList}\item 
bool \hyperlink{class_k_v_property_a2df711a6326ccf55831bd9624d159d57}{add\+Property} (string keyword, \hyperlink{class_k_v_value}{K\+V\+Value} \&value)
\begin{DoxyCompactList}\small\item\em 增加属性行 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{详细描述}
一个简单的属性列表类 

\subsection{构造及析构函数说明}
\hypertarget{class_k_v_property_a2b962e470acd5e4f5c69232b0c5cdd18}{\index{K\+V\+Property@{K\+V\+Property}!K\+V\+Property@{K\+V\+Property}}
\index{K\+V\+Property@{K\+V\+Property}!K\+V\+Property@{K\+V\+Property}}
\subsubsection[{K\+V\+Property}]{\setlength{\rightskip}{0pt plus 5cm}K\+V\+Property\+::\+K\+V\+Property (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_k_v_property_a2b962e470acd5e4f5c69232b0c5cdd18}


属性表构造函数 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}
\hypertarget{class_k_v_property_ab7a2ed9ecf029cf60e9403e5b34d5053}{\index{K\+V\+Property@{K\+V\+Property}!````~K\+V\+Property@{$\sim$\+K\+V\+Property}}
\index{````~K\+V\+Property@{$\sim$\+K\+V\+Property}!K\+V\+Property@{K\+V\+Property}}
\subsubsection[{$\sim$\+K\+V\+Property}]{\setlength{\rightskip}{0pt plus 5cm}K\+V\+Property\+::$\sim$\+K\+V\+Property (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_k_v_property_ab7a2ed9ecf029cf60e9403e5b34d5053}


属性表析构函数 


\begin{DoxyParams}{参数}
{\em none} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
none 
\end{DoxyReturn}


\subsection{成员函数说明}
\hypertarget{class_k_v_property_a2df711a6326ccf55831bd9624d159d57}{\index{K\+V\+Property@{K\+V\+Property}!add\+Property@{add\+Property}}
\index{add\+Property@{add\+Property}!K\+V\+Property@{K\+V\+Property}}
\subsubsection[{add\+Property}]{\setlength{\rightskip}{0pt plus 5cm}bool K\+V\+Property\+::add\+Property (
\begin{DoxyParamCaption}
\item[{string}]{keyword, }
\item[{{\bf K\+V\+Value} \&}]{value}
\end{DoxyParamCaption}
)}}\label{class_k_v_property_a2df711a6326ccf55831bd9624d159d57}


增加属性行 


\begin{DoxyParams}{参数}
{\em keyword} & 属性名称 \\
\hline
{\em value} & 属性值 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回true,失败返回false 
\end{DoxyReturn}
\hypertarget{class_k_v_property_a2d5407252192596dcf76e8b4c819ccd4}{\index{K\+V\+Property@{K\+V\+Property}!init\+With\+File@{init\+With\+File}}
\index{init\+With\+File@{init\+With\+File}!K\+V\+Property@{K\+V\+Property}}
\subsubsection[{init\+With\+File}]{\setlength{\rightskip}{0pt plus 5cm}bool K\+V\+Property\+::init\+With\+File (
\begin{DoxyParamCaption}
\item[{const string}]{file\+Name}
\end{DoxyParamCaption}
)}}\label{class_k_v_property_a2d5407252192596dcf76e8b4c819ccd4}


从配置文件初始化属性表 


\begin{DoxyParams}{参数}
{\em file} & 属性文件名 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回true,失败返回false 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}
\hypertarget{class_k_v_property_a2da1520428e305fa4142943762c10263}{\index{K\+V\+Property@{K\+V\+Property}!operator\mbox{[}$\,$\mbox{]}@{operator[]}}
\index{operator\mbox{[}$\,$\mbox{]}@{operator[]}!K\+V\+Property@{K\+V\+Property}}
\subsubsection[{operator[]}]{\setlength{\rightskip}{0pt plus 5cm}{\bf K\+V\+Value} \& K\+V\+Property\+::operator\mbox{[}$\,$\mbox{]} (
\begin{DoxyParamCaption}
\item[{string}]{keyword}
\end{DoxyParamCaption}
)}}\label{class_k_v_property_a2da1520428e305fa4142943762c10263}


\mbox{[}\mbox{]}运算符重载 


\begin{DoxyParams}{参数}
{\em keyword} & 属性名称 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
返回属性值 
\end{DoxyReturn}
\hypertarget{class_k_v_property_aba54fbf360de68a40d5f5d320cde7e5b}{\index{K\+V\+Property@{K\+V\+Property}!save\+As\+File@{save\+As\+File}}
\index{save\+As\+File@{save\+As\+File}!K\+V\+Property@{K\+V\+Property}}
\subsubsection[{save\+As\+File}]{\setlength{\rightskip}{0pt plus 5cm}bool K\+V\+Property\+::save\+As\+File (
\begin{DoxyParamCaption}
\item[{const string}]{file\+Name}
\end{DoxyParamCaption}
)}}\label{class_k_v_property_aba54fbf360de68a40d5f5d320cde7e5b}


保存属性表,此操作会重写并保存属性文件 


\begin{DoxyParams}{参数}
{\em file\+Name} & 属性文件名 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
成功返回true,失败返回false 
\end{DoxyReturn}
\begin{DoxyNote}{注解}
none 
\end{DoxyNote}


该类的文档由以下文件生成\+:\begin{DoxyCompactItemize}
\item 
libemb/inc/\hyperlink{_k_v_property_8h}{K\+V\+Property.\+h}\item 
libemb/src/K\+V\+Property.\+cpp\end{DoxyCompactItemize}
